<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
    <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>Test page for launching the application via JNLP</title>
        <script type="text/javascript">
        <!--
        var javawsInstalled = 0;
        var javaws142Installed = 0;
        var javaws150Installed = 0;
        var javaws160Installed = 0;
        isIE = "false";
        if (navigator.mimeTypes && navigator.mimeTypes.length) {
            x = navigator.mimeTypes['application/x-java-jnlp-file'];
            if (x) {
                javawsInstalled = 1;
                javaws142Installed = 1;
                javaws150Installed = 1;
                javaws160Installed = 1;
            }
        } else {
            isIE = "true";
        }
        //-->
        </script>
        <script type="text/vbscript">>
        <!--
        on error resume next
        If isIE = "true" Then
            If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
                javawsInstalled = 0
            Else
                javawsInstalled = 1
            End If
            If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
                javaws142Installed = 0
            Else
                javaws142Installed = 1
            End If 
            If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then
                javaws150Installed = 0
            Else
                javaws150Installed = 1
            End If  
            If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.6.0.0"))) Then
                javaws160Installed = 0
            Else
                javaws160Installed = 1
            End If  
        End If
        -->
        </script>
    </head>
    <body>
        <h3>Test page for launching the application via JNLP</h3>
        <a href="launch.jnlp">Launch the application!</a>
        <!--<script type="text/javascript">-->
        <!--
        if (javawsInstalled) {
            document.write("<a href=\"launch.jnlp\">Launch the application!</a>");
        }
        //-->
        <!--</script>-->
    </body>
</html>
